package com.shadowlight.hero_story.login.database.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description 用户登陆的时候如果有账号密码就直接登陆，没有则直接注册登陆。
 * @Author cz
 * @Date 2022/3/15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserEntity {
    private int id;
    private String userName;
    private String password;
    private String heroAvatar;

    public UserEntity(String userName, String password, String heroAvatar) {
        this.userName = userName;
        this.password = password;
        this.heroAvatar = heroAvatar;
    }
}
